<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes move {
            0% {
                transform: translate(0px);
            }
            10% {
                transform: translate(1000px);
            }
            20% {
                transform: translate(0px);
            }
            30% {
                transform: translate(1000px);
            }
            40% {
                transform: translate(0px);
            }
            50% {
                transform: translate(1000px);
            }
            60% {
                transform: translate(0px);
            }
            70% {
                transform: translate(1000px);
            }
            80% {
                transform: translate(0px);
            }
            90% {
                transform: translate(1000px);
            }
            100% {
                transform: translate(0px);
            }
        }
        div {
            width: 300px;
            height: 300px;
            background-color: blue;
            animation-name: move;
            animation-duration: 1s;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>